import {Component, EventEmitter, Input, Output} from '@angular/core';
import {Router} from "@angular/router";
import {RestRiskCheckTask} from "../../../entity/RestRiskCheckTask";

@Component({
  selector: 'app-expert-task-list',
  templateUrl: 'expert-task-list.html',
  styleUrls: ['./expert-task-list.scss']
})
export class ExpertTaskListComponent {

  @Input() values: RestRiskCheckTask[] = [];
  @Output() detailFired: EventEmitter<any> = new EventEmitter<any>();
  @Output() actionFired: EventEmitter<any> = new EventEmitter<any>();

  constructor(protected _router: Router) { }

  detail(v: any) {
    // TODO pass proxy and let the detail page to request more details
    this.detailFired.emit(v);
  }
  startCheckComplete(v: any) {
    this.actionFired.emit(v);
  }
}
